<?php
if ( IPB_THIS_SCRIPT != 'admin' )
{
	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'init.php'.";
	exit();
}

class run_upgrade
{
	var $ipsclass;
	var $version_id;
	var $version_name;
	
	function auto_run()
	{
		$this->ipsclass->DB->build_query(array('select'=>'*','from'=>'market_items','where'=>"filename='/item_uploademotion.php'"));
		$q = $this->ipsclass->DB->exec_query();
		while($item = $this->ipsclass->DB->fetch_row($q))
		{
			$setting = unserialize($item['item_config']);
			$setting['max_size'] = 1500;
			$setting['clickable'] = 0;
			$this->ipsclass->DB->do_update('market_items',array(
																	'item_config' => serialize($setting)
									),"item_id=".$item['item_id']);
		}
	}
}
?>